package cn.tedu.csmall.passport.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class AdminAddNewDTO {
    @ApiModelProperty(value = "姓名",required = true)
    @NotNull(message = "添加失败 用户名不能为空")
    private String username;
    @ApiModelProperty(value ="密码",required = true)
    private String password;
    @ApiModelProperty(value ="昵称",required = true)
    private String nickname;
    @ApiModelProperty(value ="头像URL",required = true)
    private String avatar;
    @ApiModelProperty(value ="手机号",required = true)
    private String phone;
    @ApiModelProperty(value ="邮箱",required = true)
    private String email;
    @ApiModelProperty(value ="简介",required = true)
    private String description;
    @ApiModelProperty(value ="是否启用",required = true)
    private Integer enable;
    @ApiModelProperty(value ="角色ids",required = true)
    private Long[] roleIds;

}
